# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=httpgrep
pkgver=2.4
pkgrel=4
groups=('blackarch' 'blackarch-webapp' 'blackarch-scanner')
pkgdesc='A python tool which scans for HTTP servers and finds given strings in HTTP body and HTTP response headers.'
url='https://nullsecurity.net/tools/scanner.html'
license=('custom:unknown')
arch=('any')
depends=('python' 'python-requests')
source=("https://github.com/nullsecuritynet/tools/raw/main/scanner/$pkgname/release/$pkgname-$pkgver.tar.gz")
sha512sums=('2f75463d3c63a0e9705c5fc383701f587ff3ce454d2152eae27d8c54556fc82b1fe96a9196c9fb038872164455bc1172b661f23a8d078d88b1a7a3f6d8992d78')

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

